package omm.domain;

public class Risk extends PersistentAttributes implements Comparable<Risk> {
	private String description;
	private String descMin;

	public Risk(int id) {
		super(id);
	}
	//TODO: VEr si 0 o -1
	public Risk() {
		super(0);
	}


	public Risk(Integer riskID, String description, String descMin) {
		super(riskID);
		this.description = description;
		this.descMin = descMin;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescMin() {
		return descMin;
	}

	public void setDescMin(String descMin) {
		this.descMin = descMin;
	}

	@Override
	public int compareTo(Risk o) {
		Integer id = new Integer(this.getId());
		return id.compareTo(o.getId());
	}

}
